import axios from '@/utils/tool'
export const cateArtList = () => {
  return axios({
    url: '/my/cate/list',
    method: 'get'
  })
}
export const addArtList = (data) => {
  return axios({
    url: '/my/cate/add',
    method: 'post',
    data
  })
}
export const delArtList = (id) => {
  return axios({
    url: '/my/cate/del',
    method: 'DELETE',
    params: {
      id
    }
  })
}
export const getIdArtList = (id) => {
  return axios({
    url: '/my/cate/info',
    method: 'get',
    params: {
      id
    }
  })
}
export const eidtIdArtList = (data) => {
  return axios({
    url: '/my/cate/info',
    method: 'put',
    data
  })
}
export const getArtList = (q) => {
  return axios({
    url: '/my/article/list',
    method: 'get',
    params: q
  })
}
export const getLookArtList = (id) => {
  return axios({
    url: '/my/article/info',
    method: 'get',
    params: {
      id
    }
  })
}
export const addNewArt = (data) => {
  return axios({
    url: '/my/article/add',
    method: 'post',
    data
  })
}
export const delOldArt = (id) => {
  return axios({
    url: '/my/article/info',
    method: 'delete',
    params: {
      id
    }
  })
}
